import 'package:flutter/material.dart';

class PubInfo extends StatefulWidget {
  const PubInfo({super.key});

  @override
  State<StatefulWidget> createState() => _PubInfoState();
}

class _PubInfoState extends State<PubInfo> {


  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(title: const Text("添加信息"),),
      body: ListView(
        children: <Widget>[
          const ListTile(title: Text("描述1"),leading: Image(image: NetworkImage("https://picsum.photos/300/300")),subtitle: Text("描述"),trailing: Icon(Icons.arrow_right),),
          const Divider(height: 1,),
          const ListTile(title: Text("描述2"),leading: Image(image: NetworkImage("https://picsum.photos/200/200")),trailing: Icon(Icons.abc_sharp),subtitle: Text("描述")),
          const Divider(height: 1,),
          const ListTile(title: Text("描述3"),leading: Image(image: NetworkImage("https://picsum.photos/200/200")),trailing: Icon(Icons.ac_unit_sharp),subtitle: Text("描述")),
          const Divider(height: 1,),
          const ListTile(title: Text("描述4"),),
          const Divider(height: 1,),
          const ListTile(title: Text("描述5"),),
          const Divider(height: 1,),
          const ListTile(title: Text("描述6"),),
          const Divider(height: 1,),
          const ListTile(title: Text("描述7"),),
          const Divider(height: 1,),
          const ListTile(title: Text("描述8"),),
          const Divider(height: 1,),
          const ListTile(title: Text("描述8"),),
          const Divider(height: 1,),
          const ListTile(title: Text("描述8"),),
          const Divider(height: 1,),
          const ListTile(title: Text("描述8"),),
          const Divider(height: 1,),
          const ListTile(title: Text("描述8"),),
          const Divider(height: 1,),
          const ListTile(title: Text("描述8"),),
          const Divider(height: 1,),
          const ListTile(title: Text("描述8"),),
          const Divider(height: 1,),
          const ListTile(title: Text("描述8"),),
          const Divider(height: 1,),
          const ListTile(title: Text("描述8"),),
          const Divider(height: 1,),
          Container(
            height: 80,
            padding:const EdgeInsets.all(20),
            decoration: const BoxDecoration(
              color: Colors.red
            ),
            child: const Text("红色盒子"),
          ),
          const Divider(height: 1,),
          Container(
            height: 80,
            padding:const EdgeInsets.all(20),
            decoration: const BoxDecoration(
                color: Colors.blue
            ),
            child: const Text("蓝色盒子"),
          ),
        ],
      ),
    );
  }
}
